package com.ruoyi.marketing.domain;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDate;

@Data
@TableName("marketing1")
public class Coupon {

    //优惠券id
    @TableId("marketingId")
    private long couponId;

    //优惠券名称
    @TableField("name")
    private String couponName;

    //优惠券类型
    @TableField("coupon_type")
    private String couponType;

    //优惠券面值
    @TableField("coupon_value")
    private Integer couponValue;



    //优惠券领取方式
    @TableField("coupon_get_way")
    private Integer couponGetWay;

    //优惠券领取日期
    @TableField("coupon_get_date")
    private LocalDate couponGetDate;

    //优惠券使用时间
    @TableField("coupon_use_date")
    private Integer couponUseDate;

    //优惠券发布数量
    @TableField("coupon_publish_num")
    private Integer couponPublishNum;

    //是否开启
    @TableField("coupon_is_open")
    private Integer couponIsOpen;

    //是否限量
    @TableField("coupon_is_limited")
    private boolean couponIsLimited;

    //总数
    @TableField("coupon_total")
    private int couponTotal;

    //现在数量
    @TableField("coupon_last_total")
    private int couponLastTotal;
}
